const fs = require('fs')
module.exports = (filePath) => {
  return new Promise((rsv, rej) => {
    fs.readFile(filePath, 'utf-8', (error, data) => {
      !error && rsv(data)
      rej(error)
    })
  })
}
